home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / Python 1.3 PPC / Tools / bgen / ae / Finder_Suite.py < prev    next >
Encoding:
Python Source  |  1995-10-11  |  36.5 KB  |  746 lines  |  [TEXT/PYTH]

  1. """Suite Finder Suite: Objects and Events for the Finder
  2. Level 1, version 1
  3.  
  4. Generated from Moes:System folder:Extensions:Finder Scripting Extension
  5. AETE/AEUT resource version 0/144, language 0, script 0
  6. """
  7.  
  8. import addpack
  9. addpack.addpack('Tools')
  10. addpack.addpack('bgen')
  11. addpack.addpack('ae')
  12.  
  13. import aetools
  14. import MacOS
  15.  
  16. _code = 'fndr'
  17.  
  18. _Enum_vwby = {
  19.     'conflicts' : 'cflc',    # 
  20.     'existing_items' : 'exsi',    # 
  21.     'small_icon' : 'smic',    # 
  22.     'all' : 'kyal',    # 
  23. }
  24.  
  25. _Enum_gsen = {
  26.     'CPU' : 'proc',    # 
  27.     'FPU' : 'fpu ',    # 
  28.     'MMU' : 'mmu ',    # 
  29.     'hardware' : 'hdwr',    # 
  30.     'operating_system' : 'os  ',    # 
  31.     'sound_system' : 'snd ',    # 
  32.     'memory_available' : 'lram',    # 
  33.     'memory_installed' : 'ram ',    # 
  34. }
  35.  
  36. class Finder_Suite:
  37.  
  38.     _argmap_clean_up = {
  39.         'by' : 'by  ',
  40.     }
  41.  
  42.     def clean_up(self, _object, _attributes={}, **_arguments):
  43.         """clean up: Arrange items in window nicely
  44.         Required argument: the window to clean up
  45.         Keyword argument by: the order in which to clean up the objects
  46.         Keyword argument _attributes: AppleEvent attribute dictionary
  47.         """
  48.         _code = 'fndr'
  49.         _subcode = 'fclu'
  50.  
  51.         _arguments['----'] = _object
  52.  
  53.         aetools.keysubst(_arguments, self._argmap_clean_up)
  54.  
  55.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  56.                 _arguments, _attributes)
  57.         if _arguments.has_key('errn'):
  58.             raise MacOS.Error, aetools.decodeerror(_arguments)
  59.         # XXXX Optionally decode result
  60.         if _arguments.has_key('----'):
  61.             return _arguments['----']
  62.  
  63.     _argmap_computer = {
  64.         'has' : 'has ',
  65.     }
  66.  
  67.     def computer(self, _object, _attributes={}, **_arguments):
  68.         """computer: Test attributes of this computer
  69.         Required argument: the attribute to test
  70.         Keyword argument has: test specific bits of response
  71.         Keyword argument _attributes: AppleEvent attribute dictionary
  72.         Returns: the result of the query
  73.         """
  74.         _code = 'fndr'
  75.         _subcode = 'gstl'
  76.  
  77.         _arguments['----'] = _object
  78.  
  79.         aetools.keysubst(_arguments, self._argmap_computer)
  80.  
  81.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  82.                 _arguments, _attributes)
  83.         if _arguments.has_key('errn'):
  84.             raise MacOS.Error, aetools.decodeerror(_arguments)
  85.         # XXXX Optionally decode result
  86.         if _arguments.has_key('----'):
  87.             return _arguments['----']
  88.  
  89.     def eject(self, _object=None, _attributes={}, **_arguments):
  90.         """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified
  91.         Required argument: the items to eject
  92.         Keyword argument _attributes: AppleEvent attribute dictionary
  93.         """
  94.         _code = 'fndr'
  95.         _subcode = 'ejct'
  96.  
  97.         _arguments['----'] = _object
  98.  
  99.         if _arguments: raise TypeError, 'No optional args expected'
  100.  
  101.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  102.                 _arguments, _attributes)
  103.         if _arguments.has_key('errn'):
  104.             raise MacOS.Error, aetools.decodeerror(_arguments)
  105.         # XXXX Optionally decode result
  106.         if _arguments.has_key('----'):
  107.             return _arguments['----']
  108.  
  109.     def empty(self, _object=None, _attributes={}, **_arguments):
  110.         """empty: Empty the trash
  111.         Required argument: “empty” and “empty trash” both do the same thing
  112.         Keyword argument _attributes: AppleEvent attribute dictionary
  113.         """
  114.         _code = 'fndr'
  115.         _subcode = 'empt'
  116.  
  117.         _arguments['----'] = _object
  118.  
  119.         if _arguments: raise TypeError, 'No optional args expected'
  120.  
  121.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  122.                 _arguments, _attributes)
  123.         if _arguments.has_key('errn'):
  124.             raise MacOS.Error, aetools.decodeerror(_arguments)
  125.         # XXXX Optionally decode result
  126.         if _arguments.has_key('----'):
  127.             return _arguments['----']
  128.  
  129.     def erase(self, _object, _attributes={}, **_arguments):
  130.         """erase: Erase the specified disk(s)
  131.         Required argument: the items to erase
  132.         Keyword argument _attributes: AppleEvent attribute dictionary
  133.         """
  134.         _code = 'fndr'
  135.         _subcode = 'fera'
  136.  
  137.         _arguments['----'] = _object
  138.  
  139.         if _arguments: raise TypeError, 'No optional args expected'
  140.  
  141.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  142.                 _arguments, _attributes)
  143.         if _arguments.has_key('errn'):
  144.             raise MacOS.Error, aetools.decodeerror(_arguments)
  145.         # XXXX Optionally decode result
  146.         if _arguments.has_key('----'):
  147.             return _arguments['----']
  148.  
  149.     _argmap_put_away = {
  150.         'items' : 'fsel',
  151.     }
  152.  
  153.     def put_away(self, _object, _attributes={}, **_arguments):
  154.         """put away: Put away the specified object(s)
  155.         Required argument: the items to put away
  156.         Keyword argument items: DO NOT USE: provided for backwards compatibility with old event suite.  Will be removed in future Finders
  157.         Keyword argument _attributes: AppleEvent attribute dictionary
  158.         Returns: the object put away in its put-away location
  159.         """
  160.         _code = 'fndr'
  161.         _subcode = 'ptwy'
  162.  
  163.         _arguments['----'] = _object
  164.  
  165.         aetools.keysubst(_arguments, self._argmap_put_away)
  166.  
  167.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  168.                 _arguments, _attributes)
  169.         if _arguments.has_key('errn'):
  170.             raise MacOS.Error, aetools.decodeerror(_arguments)
  171.         # XXXX Optionally decode result
  172.         if _arguments.has_key('----'):
  173.             return _arguments['----']
  174.  
  175.     def restart(self, _no_object=None, _attributes={}, **_arguments):
  176.         """restart: Restart the Macintosh
  177.         Keyword argument _attributes: AppleEvent attribute dictionary
  178.         """
  179.         _code = 'fndr'
  180.         _subcode = 'rest'
  181.  
  182.         if _no_object != None: raise TypeError, 'No direct arg expected'
  183.  
  184.         if _arguments: raise TypeError, 'No optional args expected'
  185.  
  186.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  187.                 _arguments, _attributes)
  188.         if _arguments.has_key('errn'):
  189.             raise MacOS.Error, aetools.decodeerror(_arguments)
  190.         # XXXX Optionally decode result
  191.         if _arguments.has_key('----'):
  192.             return _arguments['----']
  193.  
  194.     def reveal(self, _object, _attributes={}, **_arguments):
  195.         """reveal: Bring the specified object(s) into view
  196.         Required argument: the object to be made visible
  197.         Keyword argument _attributes: AppleEvent attribute dictionary
  198.         """
  199.         _code = 'misc'
  200.         _subcode = 'mvis'
  201.  
  202.         _arguments['----'] = _object
  203.  
  204.         if _arguments: raise TypeError, 'No optional args expected'
  205.  
  206.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  207.                 _arguments, _attributes)
  208.         if _arguments.has_key('errn'):
  209.             raise MacOS.Error, aetools.decodeerror(_arguments)
  210.         # XXXX Optionally decode result
  211.         if _arguments.has_key('----'):
  212.             return _arguments['----']
  213.  
  214.     def select(self, _object, _attributes={}, **_arguments):
  215.         """select: Select the specified object(s)
  216.         Required argument: the object to select
  217.         Keyword argument _attributes: AppleEvent attribute dictionary
  218.         """
  219.         _code = 'misc'
  220.         _subcode = 'slct'
  221.  
  222.         _arguments['----'] = _object
  223.  
  224.         if _arguments: raise TypeError, 'No optional args expected'
  225.  
  226.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  227.                 _arguments, _attributes)
  228.         if _arguments.has_key('errn'):
  229.             raise MacOS.Error, aetools.decodeerror(_arguments)
  230.         # XXXX Optionally decode result
  231.         if _arguments.has_key('----'):
  232.             return _arguments['----']
  233.  
  234.     def shut_down(self, _no_object=None, _attributes={}, **_arguments):
  235.         """shut down: Shut Down the Macintosh
  236.         Keyword argument _attributes: AppleEvent attribute dictionary
  237.         """
  238.         _code = 'fndr'
  239.         _subcode = 'shut'
  240.  
  241.         if _no_object != None: raise TypeError, 'No direct arg expected'
  242.  
  243.         if _arguments: raise TypeError, 'No optional args expected'
  244.  
  245.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  246.                 _arguments, _attributes)
  247.         if _arguments.has_key('errn'):
  248.             raise MacOS.Error, aetools.decodeerror(_arguments)
  249.         # XXXX Optionally decode result
  250.         if _arguments.has_key('----'):
  251.             return _arguments['----']
  252.  
  253.     def sleep(self, _no_object=None, _attributes={}, **_arguments):
  254.         """sleep: Sleep the Macintosh
  255.         Keyword argument _attributes: AppleEvent attribute dictionary
  256.         """
  257.         _code = 'fndr'
  258.         _subcode = 'snoz'
  259.  
  260.         if _no_object != None: raise TypeError, 'No direct arg expected'
  261.  
  262.         if _arguments: raise TypeError, 'No optional args expected'
  263.  
  264.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  265.                 _arguments, _attributes)
  266.         if _arguments.has_key('errn'):
  267.             raise MacOS.Error, aetools.decodeerror(_arguments)
  268.         # XXXX Optionally decode result
  269.         if _arguments.has_key('----'):
  270.             return _arguments['----']
  271.  
  272.     _argmap_sort = {
  273.         'by' : 'by  ',
  274.     }
  275.  
  276.     def sort(self, _object, _attributes={}, **_arguments):
  277.         """sort: Return the specified object(s) in a sorted list
  278.         Required argument: a list of finder objects to sort
  279.         Keyword argument by: the property to sort the items by
  280.         Keyword argument _attributes: AppleEvent attribute dictionary
  281.         Returns: the sorted items in their new order
  282.         """
  283.         _code = 'DATA'
  284.         _subcode = 'SORT'
  285.  
  286.         _arguments['----'] = _object
  287.  
  288.         aetools.keysubst(_arguments, self._argmap_sort)
  289.  
  290.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  291.                 _arguments, _attributes)
  292.         if _arguments.has_key('errn'):
  293.             raise MacOS.Error, aetools.decodeerror(_arguments)
  294.         # XXXX Optionally decode result
  295.         if _arguments.has_key('----'):
  296.             return _arguments['----']
  297.  
  298.     def update(self, _object, _attributes={}, **_arguments):
  299.         """update: Update the display of the specified object(s) to match their on-disk representation
  300.         Required argument: the item to update
  301.         Keyword argument _attributes: AppleEvent attribute dictionary
  302.         """
  303.         _code = 'fndr'
  304.         _subcode = 'fupd'
  305.  
  306.         _arguments['----'] = _object
  307.  
  308.         if _arguments: raise TypeError, 'No optional args expected'
  309.  
  310.         _reply, _arguments, _attributes = self.send(_code, _subcode,
  311.                 _arguments, _attributes)
  312.         if _arguments.has_key('errn'):
  313.             raise MacOS.Error, aetools.decodeerror(_arguments)
  314.         # XXXX Optionally decode result
  315.         if _arguments.has_key('----'):
  316.             return _arguments['----']
  317.  
  318.  
  319. #    Class 'accessory process' ('pcda') -- 'A process launched from a desk accessory file'
  320. #        property 'desk accessory file' ('dafi') 'obj ' -- 'the desk accessory file from which this process was launched' []
  321.  
  322. #    Class 'accessory processes' ('pcda') -- 'every accessory process'
  323. #        property '' ('c@#!') 'type' -- '' [0]
  324.  
  325. #    Class 'accessory suitcase' ('dsut') -- 'A desk accessory suitcase'
  326. #        element 'cobj' as ['indx', 'name']
  327.  
  328. #    Class 'accessory suitcases' ('dsut') -- 'every accessory suitcase'
  329. #        property '' ('c@#!') 'type' -- '' [0]
  330.  
  331. #    Class 'alias file' ('alia') -- 'An alias file (created with \322Make Alias\323)'
  332. #        property 'original item' ('orig') 'obj ' -- 'the original item pointed to by the alias' []
  333.  
  334. #    Class 'alias files' ('alia') -- 'every alias file'
  335. #        property '' ('c@#!') 'type' -- '' [0]
  336.  
  337. #    Class 'application' ('capp') -- 'An application program'
  338. #        property 'about this macintosh' ('abbx') 'obj ' -- 'the \322About this Macintosh\323 dialog, and the list of running processes displayed in it' []
  339. #        property 'apple menu items folder' ('amnu') 'obj ' -- 'the special folder \322Apple Menu Items,\323 the contents of which appear in the Apple menu' []
  340. #        property 'clipboard' ('pcli') 'obj ' -- "the Finder's clipboard window" []
  341. #        property 'control panels folder' ('ctrl') 'obj ' -- 'the special folder \322Control Panels\323' []
  342. #        property 'desktop' ('desk') 'obj ' -- 'the desktop' []
  343. #        property 'extensions folder' ('extn') 'obj ' -- 'the special folder \322Extensions\323' []
  344. #        property 'file sharing' ('fshr') 'bool' -- 'Is file sharing on?' [mutable]
  345. #        property 'fonts folder' ('ffnt') 'obj ' -- 'the special folder \322Fonts\323' []
  346. #        property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable]
  347. #        property 'insertion location' ('pins') 'obj ' -- 'the container that a new folder would appear in if \322New Folder\323 was selected' []
  348. #        property 'largest free block' ('mfre') 'long' -- 'the largest free block of process memory available to launch an application' []
  349. #        property 'preferences folder' ('pref') 'obj ' -- 'the special folder \322Preferences\323' []
  350. #        property 'product version' ('ver2') 'itxt' -- 'the version of the System software running on this Macintosh' []
  351. #        property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
  352. #        property 'sharing starting up' ('fsup') 'bool' -- 'Is File sharing in the process of starting up (still off, but soon to be on)?' []
  353. #        property 'shortcuts' ('scut') 'obj ' -- "the \322Finder Shortcuts\323 item in the Finder's help menu" []
  354. #        property 'shutdown items folder' ('shdf') 'obj ' -- 'the special folder \322Shutdown Items\323' []
  355. #        property 'startup items folder' ('strt') 'obj ' -- 'the special folder \322Startup Items\323' []
  356. #        property 'system folder' ('macs') 'obj ' -- 'the System folder' []
  357. #        property 'temporary items folder' ('temp') 'obj ' -- 'the special folder \322Temporary Items\323 (invisible)' []
  358. #        property 'version' ('vers') 'itxt' -- 'the version of the Finder Scripting Extension' []
  359. #        property 'view preferences' ('pvwp') 'obj ' -- 'the view preferences control panel' []
  360. #        property 'visible' ('pvis') 'bool' -- "Is the Finder's layer visible?" [mutable]
  361. #        element 'dsut' as ['indx', 'name']
  362. #        element 'alia' as ['indx', 'name']
  363. #        element 'appf' as ['indx', 'name', 'ID  ']
  364. #        element 'ctnr' as ['indx', 'name']
  365. #        element 'cwnd' as ['indx', 'name']
  366. #        element 'dwnd' as ['indx', 'name']
  367. #        element 'ccdv' as ['indx', 'name']
  368. #        element 'dafi' as ['indx', 'name']
  369. #        element 'cdsk' as ['indx', 'name']
  370. #        element 'cdis' as ['indx', 'name', 'ID  ']
  371. #        element 'docf' as ['indx', 'name']
  372. #        element 'file' as ['indx', 'name']
  373. #        element 'cfol' as ['indx', 'name', 'ID  ']
  374. #        element 'fntf' as ['indx', 'name']
  375. #        element 'fsut' as ['indx', 'name']
  376. #        element 'iwnd' as ['indx', 'name']
  377. #        element 'cobj' as ['indx', 'name']
  378. #        element 'sctr' as ['indx', 'name']
  379. #        element 'swnd' as ['indx', 'name']
  380. #        element 'sndf' as ['indx', 'name']
  381. #        element 'stcs' as ['indx', 'name']
  382. #        element 'ctrs' as ['indx', 'name']
  383. #        element 'cwin' as ['indx', 'name']
  384.  
  385. #    Class 'application file' ('appf') -- "An application's file on disk"
  386. #        property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable]
  387. #        property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable]
  388. #        property 'scriptable' ('isab') 'bool' -- 'Is this application high-level event aware (accepts open application, open document, print document, and quit)?' []
  389. #        property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' []
  390.  
  391. #    Class 'application files' ('appf') -- 'every application file'
  392. #        property '' ('c@#!') 'type' -- '' [0]
  393.  
  394. #    Class 'application process' ('pcap') -- 'A process launched from an application file'
  395. #        property 'application file' ('appf') 'appf' -- 'the application file from which this process was launched' []
  396.  
  397. #    Class 'application processes' ('pcap') -- 'every application process'
  398. #        property '' ('c@#!') 'type' -- '' [0]
  399.  
  400. #    Class 'container' ('ctnr') -- 'An item that contains other items'
  401. #        property 'completely expanded' ('pexc') 'bool' -- 'Is the container and all of its children open in outline view?' [mutable]
  402. #        property 'container window' ('cwnd') 'obj ' -- 'the main window for the container' []
  403. #        property 'entire contents' ('ects') 'obj ' -- 'the entire contents of the container, including the contents of its children' []
  404. #        property 'expandable' ('pexa') 'bool' -- 'Is the container capable of being expanded into outline view?' []
  405. #        property 'expanded' ('pexp') 'bool' -- 'Is the container open in outline view?' [mutable]
  406. #        property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)' []
  407. #        property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
  408. #        property 'view' ('pvew') 'long' -- 'the view selected for the container (by icon, by name, by date, etc.)' [mutable]
  409. #        element 'dsut' as ['indx', 'name']
  410. #        element 'alia' as ['indx', 'name']
  411. #        element 'appf' as ['indx', 'name']
  412. #        element 'ctnr' as ['indx', 'name']
  413. #        element 'ccdv' as ['indx', 'name']
  414. #        element 'dafi' as ['indx', 'name']
  415. #        element 'docf' as ['indx', 'name']
  416. #        element 'file' as ['indx', 'name']
  417. #        element 'cfol' as ['indx', 'name']
  418. #        element 'fntf' as ['indx', 'name']
  419. #        element 'fsut' as ['indx', 'name']
  420. #        element 'cobj' as ['indx', 'name']
  421. #        element 'sctr' as ['indx', 'name']
  422. #        element 'sndf' as ['indx', 'name']
  423. #        element 'stcs' as ['indx', 'name']
  424.  
  425. #    Class 'containers' ('ctnr') -- 'every container'
  426. #        property '' ('c@#!') 'type' -- '' [0]
  427.  
  428. #    Class 'container window' ('cwnd') -- 'A window that contains items'
  429. #        property 'container' ('ctnr') 'obj ' -- 'the container this window is opened from' []
  430. #        property 'disk' ('cdis') 'obj ' -- 'the disk on which the item this window was opened from is stored' []
  431. #        property 'folder' ('cfol') 'obj ' -- 'the folder this window is opened from' []
  432. #        property 'item' ('cobj') 'obj ' -- 'the item this window is opened from' []
  433. #        property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed)' []
  434. #        property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
  435. #        property 'view' ('pvew') 'long' -- 'the view selected for the window (by icon, by name, by date, etc.)' [mutable]
  436. #        element 'dsut' as ['indx', 'name']
  437. #        element 'alia' as ['indx', 'name']
  438. #        element 'appf' as ['indx', 'name']
  439. #        element 'ctnr' as ['indx', 'name']
  440. #        element 'ccdv' as ['indx', 'name']
  441. #        element 'dafi' as ['indx', 'name']
  442. #        element 'docf' as ['indx', 'name']
  443. #        element 'file' as ['indx', 'name']
  444. #        element 'cfol' as ['indx', 'name']
  445. #        element 'fntf' as ['indx', 'name']
  446. #        element 'fsut' as ['indx', 'name']
  447. #        element 'cobj' as ['indx', 'name']
  448. #        element 'sctr' as ['indx', 'name']
  449. #        element 'sndf' as ['indx', 'name']
  450. #        element 'stcs' as ['indx', 'name']
  451.  
  452. #    Class 'container windows' ('cwnd') -- 'every container window'
  453. #        property '' ('c@#!') 'type' -- '' [0]
  454.  
  455. #    Class 'content space' ('dwnd') -- 'All windows, including the desktop window (\322Window\323 does not include the desktop window)'
  456.  
  457. #    Class 'content spaces' ('dwnd') -- 'Every content space'
  458. #        property '' ('c@#!') 'type' -- '' [0]
  459.  
  460. #    Class 'control panel' ('ccdv') -- 'A control panel'
  461. #        property 'calculate folder sizes' ('sfsz') 'bool' -- '(Views) Are folder sizes calculated and displayed in Finder list windows?' [mutable]
  462. #        property 'comment heading' ('scom') 'bool' -- '(Views) Are comments displayed in Finder list windows?' [mutable]
  463. #        property 'date heading' ('sdat') 'bool' -- '(Views) Are modification dates displayed in Finder list windows?' [mutable]
  464. #        property 'disk information heading' ('sdin') 'bool' -- '(Views) Is information about the volume displayed in Finder list windows?' [mutable]
  465. #        property 'icon size' ('lvis') 'long' -- '(Views) the size of icons displayed in Finder list windows' [mutable]
  466. #        property 'kind heading' ('sknd') 'bool' -- '(Views) Are document kinds displayed in Finder list windows?' [mutable]
  467. #        property 'label heading' ('slbl') 'bool' -- '(Views) Are labels displayed in Finder list windows?' [mutable]
  468. #        property 'size heading' ('ssiz') 'bool' -- '(Views) Are file sizes displayed in Finder list windows' [mutable]
  469. #        property 'snap to grid' ('fgrd') 'bool' -- '(Views) Are items always snapped to the nearest grid point when they are moved?' [mutable]
  470. #        property 'staggered grid' ('fstg') 'bool' -- '(Views) Are grid lines staggered?' [mutable]
  471. #        property 'version heading' ('svrs') 'bool' -- '(Views) Are file versions displayed in Finder list windows?' [mutable]
  472. #        property 'view font' ('vfnt') 'long' -- '(Views) the id of the font used in Finder views' [mutable]
  473. #        property 'view font size' ('vfsz') 'long' -- '(Views) the size of the font used in Finder views' [mutable]
  474.  
  475. #    Class 'control panels' ('ccdv') -- 'every control panel'
  476. #        property '' ('c@#!') 'type' -- '' [0]
  477.  
  478. #    Class 'desk accessory file' ('dafi') -- 'A desk accessory file'
  479.  
  480. #    Class 'desk accessory files' ('dafi') -- 'every desk accessory file'
  481. #        property '' ('c@#!') 'type' -- '' [0]
  482.  
  483. #    Class 'desktop-object' ('cdsk') -- 'Desktop-object is the class of the \322desktop\323 object'
  484. #        property 'startup disk' ('sdsk') 'obj ' -- 'the startup disk' []
  485. #        property 'trash' ('trsh') 'obj ' -- 'the trash' []
  486. #        element 'dsut' as ['indx', 'name']
  487. #        element 'alia' as ['indx', 'name']
  488. #        element 'appf' as ['indx', 'name']
  489. #        element 'ctnr' as ['indx', 'name']
  490. #        element 'ccdv' as ['indx', 'name']
  491. #        element 'dafi' as ['indx', 'name']
  492. #        element 'docf' as ['indx', 'name']
  493. #        element 'file' as ['indx', 'name']
  494. #        element 'cfol' as ['indx', 'name']
  495. #        element 'fntf' as ['indx', 'name']
  496. #        element 'fsut' as ['indx', 'name']
  497. #        element 'cobj' as ['indx', 'name']
  498. #        element 'sctr' as ['indx', 'name']
  499. #        element 'sndf' as ['indx', 'name']
  500. #        element 'stcs' as ['indx', 'name']
  501.  
  502. #    Class 'disk' ('cdis') -- 'A disk'
  503. #        property 'capacity' ('capa') 'long' -- 'the total number of bytes (free or used) on the disk' []
  504. #        property 'ejectable' ('isej') 'bool' -- "Can the media can be ejected (floppies, CD's, syquest)?" []
  505. #        property 'free space' ('frsp') 'long' -- 'the number of free bytes left on the disk' []
  506. #        property 'local volume' ('isrv') 'bool' -- 'Is the media is a local volume (rather than a file server)?' []
  507. #        property 'startup' ('istd') 'bool' -- 'Is this disk the boot disk?' []
  508. #        element 'dsut' as ['indx', 'name']
  509. #        element 'alia' as ['indx', 'name']
  510. #        element 'appf' as ['indx', 'name']
  511. #        element 'ctnr' as ['indx', 'name']
  512. #        element 'ccdv' as ['indx', 'name']
  513. #        element 'dafi' as ['indx', 'name']
  514. #        element 'docf' as ['indx', 'name']
  515. #        element 'file' as ['indx', 'name']
  516. #        element 'cfol' as ['indx', 'ID  ', 'name']
  517. #        element 'fntf' as ['indx', 'name']
  518. #        element 'fsut' as ['indx', 'name']
  519. #        element 'cobj' as ['indx', 'name']
  520. #        element 'sctr' as ['indx', 'name']
  521. #        element 'sndf' as ['indx', 'name']
  522. #        element 'stcs' as ['indx', 'name']
  523.  
  524. #    Class 'disks' ('cdis') -- 'every disk'
  525. #        property '' ('c@#!') 'type' -- '' [0]
  526.  
  527. #    Class 'document file' ('docf') -- 'A document file'
  528.  
  529. #    Class 'document files' ('docf') -- 'every document file'
  530. #        property '' ('c@#!') 'type' -- '' [0]
  531.  
  532. #    Class 'file' ('file') -- 'A file'
  533. #        property 'creator type' ('fcrt') 'type' -- 'the OSType identifying the application that created the item' [mutable]
  534. #        property 'file type' ('fitp') 'type' -- 'the OSType identifying the type of data contained in the item' [mutable]
  535. #        property 'locked' ('islk') 'bool' -- 'Is the file locked?' [mutable]
  536. #        property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' []
  537. #        property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable]
  538. #        property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' []
  539.  
  540. #    Class 'files' ('file') -- 'every file'
  541. #        property '' ('c@#!') 'type' -- '' [0]
  542.  
  543. #    Class 'folder' ('cfol') -- 'A folder'
  544. #        element 'dsut' as ['indx', 'name']
  545. #        element 'alia' as ['indx', 'name']
  546. #        element 'appf' as ['indx', 'name']
  547. #        element 'ctnr' as ['indx', 'name']
  548. #        element 'ccdv' as ['indx', 'name']
  549. #        element 'dafi' as ['indx', 'name']
  550. #        element 'docf' as ['indx', 'name']
  551. #        element 'file' as ['indx', 'name']
  552. #        element 'cfol' as ['indx', 'name']
  553. #        element 'fntf' as ['indx', 'name']
  554. #        element 'fsut' as ['indx', 'name']
  555. #        element 'cobj' as ['indx', 'name']
  556. #        element 'sctr' as ['indx', 'name']
  557. #        element 'sndf' as ['indx', 'name']
  558. #        element 'stcs' as ['indx', 'name']
  559.  
  560. #    Class 'folders' ('cfol') -- 'every folder'
  561. #        property '' ('c@#!') 'type' -- '' [0]
  562.  
  563. #    Class 'font file' ('fntf') -- 'A font file'
  564.  
  565. #    Class 'font files' ('fntf') -- 'every font file'
  566. #        property '' ('c@#!') 'type' -- '' [0]
  567.  
  568. #    Class 'font suitcase' ('fsut') -- 'A font suitcase'
  569. #        element 'cobj' as ['indx', 'name']
  570.  
  571. #    Class 'font suitcases' ('fsut') -- 'every font suitcase'
  572. #        property '' ('c@#!') 'type' -- '' [0]
  573.  
  574. #    Class 'group' ('sgrp') -- 'A Group in the Users and Groups control panel'
  575. #        property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the group' [mutable]
  576. #        property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the group' [mutable]
  577. #        property 'label index' ('labi') 'long' -- 'the label of the group' [mutable]
  578. #        property 'name' ('pnam') 'itxt' -- 'the name of the group' [mutable]
  579. #        property 'position' ('posn') 'QDpt' -- 'the position of the group within its parent window' [mutable]
  580.  
  581. #    Class 'groups' ('sgrp') -- 'every group'
  582. #        property '' ('c@#!') 'type' -- '' [0]
  583.  
  584. #    Class 'information window' ('iwnd') -- 'An information window (opened by \322Get Info\311\323)'
  585. #        property 'comment' ('comt') 'itxt' -- 'the comment' [mutable]
  586. #        property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' []
  587. #        property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable]
  588. #        property 'item' ('cobj') 'obj ' -- 'the item this window was opened from' []
  589. #        property 'locked' ('islk') 'bool' -- 'Is the item locked?' [mutable]
  590. #        property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable]
  591. #        property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' []
  592. #        property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable]
  593. #        property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' []
  594. #        property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' []
  595. #        property 'size' ('ptsz') 'long' -- 'the logical size of the item' []
  596. #        property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable]
  597. #        property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' []
  598. #        property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' []
  599. #        property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable]
  600.  
  601. #    Class 'information windows' ('iwnd') -- 'every information window'
  602. #        property '' ('c@#!') 'type' -- '' [0]
  603.  
  604. #    Class 'item' ('cobj') -- 'An item'
  605. #        property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the item' [mutable]
  606. #        property 'comment' ('comt') 'itxt' -- 'the comment displayed in the \322Get Info\323 window of the item' [mutable]
  607. #        property 'container' ('ctnr') 'obj ' -- 'the container of this item' []
  608. #        property 'content space' ('dwnd') 'dwnd' -- 'the window that would open if the item was opened' []
  609. #        property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' []
  610. #        property 'disk' ('cdis') 'obj ' -- 'the disk on which the item is stored' []
  611. #        property 'folder' ('cfol') 'obj ' -- 'the folder in which the item is stored' []
  612. #        property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable]
  613. #        property 'id' ('ID  ') 'long' -- 'an id that identifies the item' []
  614. #        property 'information window' ('iwnd') 'obj ' -- 'the information window for the item' []
  615. #        property 'kind' ('kind') 'itxt' -- 'the kind of the item' []
  616. #        property 'label index' ('labi') 'long' -- 'the label of the item' [mutable]
  617. #        property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' []
  618. #        property 'name' ('pnam') 'itxt' -- 'the name of the item' [mutable]
  619. #        property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' []
  620. #        property 'position' ('posn') 'QDpt' -- 'the position of the item within its parent window' [mutable]
  621. #        property 'selected' ('issl') 'bool' -- 'Is the item selected?' [mutable]
  622. #        property 'size' ('ptsz') 'long' -- 'the logical size of the item' []
  623. #        property 'window' ('cwin') 'cwin' -- 'the window that would open if the item was opened' []
  624.  
  625. #    Class 'items' ('cobj') -- 'every item'
  626. #        property '' ('c@#!') 'type' -- '' [0]
  627.  
  628. #    Class 'process' ('prcs') -- 'A process running on this Macintosh'
  629. #        property 'creator type' ('fcrt') 'type' -- 'the creator type of this process' []
  630. #        property 'file' ('file') 'obj ' -- 'the file that launched this process' []
  631. #        property 'file type' ('fitp') 'type' -- 'the file type of the file that launched this process' []
  632. #        property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable]
  633. #        property 'name' ('pnam') 'itxt' -- 'the name of the process' []
  634. #        property 'partition size' ('appt') 'long' -- 'the size of the partition that this application was launched with' []
  635. #        property 'partition space used' ('pusd') 'long' -- 'the number of bytes currently used in this partition' []
  636. #        property 'remote events' ('revt') 'bool' -- 'Will this process accepts remote events?' []
  637. #        property 'scriptable' ('isab') 'bool' -- 'Is this process high-level event aware (accepts open application, open document, print document, and quit)?' []
  638. #        property 'visible' ('pvis') 'bool' -- "Is this process' layer visible?" [mutable]
  639.  
  640. #    Class 'processes' ('prcs') -- 'every process'
  641. #        property '' ('c@#!') 'type' -- '' [0]
  642.  
  643. #    Class 'sharable container' ('sctr') -- 'A container that may be shared (disks and folders)'
  644. #        property 'exported' ('sexp') 'bool' -- 'Is this folder a share point or inside a share point?' []
  645. #        property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the folder' [mutable]
  646. #        property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable]
  647. #        property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable]
  648. #        property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable]
  649. #        property 'mounted' ('smou') 'bool' -- "Is this folder mounted on another machine's desktop?" []
  650. #        property 'owner' ('sown') 'itxt' -- 'the user that owns this folder' [mutable]
  651. #        property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable]
  652. #        property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable]
  653. #        property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable]
  654. #        property 'sharing window' ('swnd') 'obj ' -- 'the sharing window for the container' []
  655. #        element 'dsut' as ['indx', 'name']
  656. #        element 'alia' as ['indx', 'name']
  657. #        element 'appf' as ['indx', 'name']
  658. #        element 'ctnr' as ['indx', 'name']
  659. #        element 'ccdv' as ['indx', 'name']
  660. #        element 'dafi' as ['indx', 'name']
  661. #        element 'docf' as ['indx', 'name']
  662. #        element 'file' as ['indx', 'name']
  663. #        element 'cfol' as ['indx', 'name']
  664. #        element 'fntf' as ['indx', 'name']
  665. #        element 'fsut' as ['indx', 'name']
  666. #        element 'cobj' as ['indx', 'name']
  667. #        element 'sctr' as ['indx', 'name']
  668. #        element 'sndf' as ['indx', 'name']
  669. #        element 'stcs' as ['indx', 'name']
  670.  
  671. #    Class 'sharable containers' ('sctr') -- 'every sharable container'
  672. #        property '' ('c@#!') 'type' -- '' [0]
  673.  
  674. #    Class 'sharing privileges' ('priv') -- 'A set of sharing properties'
  675. #        property 'make changes' ('prvw') 'bool' -- 'privileges to make changes' [mutable]
  676. #        property 'see files' ('prvr') 'bool' -- 'privileges to see files' [mutable]
  677. #        property 'see folders' ('prvs') 'bool' -- 'privileges to see folders' [mutable]
  678.  
  679. #    Class 'sharing window' ('swnd') -- 'A sharing window (opened by \322Sharing\311\323)'
  680. #        property 'container' ('ctnr') 'obj ' -- 'the container that this window was opened from' []
  681. #        property 'exported' ('sexp') 'bool' -- 'Is this container a share point or inside a share point?' []
  682. #        property 'folder' ('cfol') 'obj ' -- 'the folder that this window was opened from' []
  683. #        property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the container' [mutable]
  684. #        property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable]
  685. #        property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable]
  686. #        property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable]
  687. #        property 'item' ('cobj') 'obj ' -- 'the item that this window was opened from' []
  688. #        property 'mounted' ('smou') 'bool' -- "Is this container mounted on another machine's desktop?" []
  689. #        property 'owner' ('sown') 'itxt' -- 'the user that owns the container' [mutable]
  690. #        property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable]
  691. #        property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable]
  692. #        property 'sharable container' ('sctr') 'obj ' -- 'the sharable container that this window was opened from' []
  693. #        property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable]
  694.  
  695. #    Class 'sharing windows' ('swnd') -- 'every sharing window'
  696. #        property '' ('c@#!') 'type' -- '' [0]
  697.  
  698. #    Class 'sound file' ('sndf') -- 'This class represents sound files'
  699.  
  700. #    Class 'sound files' ('sndf') -- 'every sound file'
  701. #        property '' ('c@#!') 'type' -- '' [0]
  702.  
  703. #    Class 'status window' ('qwnd') -- 'These windows are progress dialogs (copy window, rebuild desktop database, empty trash)'
  704.  
  705. #    Class 'status windows' ('qwnd') -- 'every status window'
  706. #        property '' ('c@#!') 'type' -- '' [0]
  707.  
  708. #    Class 'suitcase' ('stcs') -- 'A font or desk accessory suitcase'
  709. #        element 'cobj' as ['indx', 'name']
  710.  
  711. #    Class 'suitcases' ('stcs') -- 'every suitcase'
  712. #        property '' ('c@#!') 'type' -- '' [0]
  713.  
  714. #    Class 'trash-object' ('ctrs') -- 'Trash-object is the class of the \322trash\323 object'
  715. #        property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable]
  716. #        element 'dsut' as ['indx', 'name']
  717. #        element 'alia' as ['indx', 'name']
  718. #        element 'appf' as ['indx', 'name']
  719. #        element 'ctnr' as ['indx', 'name']
  720. #        element 'ccdv' as ['indx', 'name']
  721. #        element 'dafi' as ['indx', 'name']
  722. #        element 'docf' as ['indx', 'name']
  723. #        element 'file' as ['indx', 'name']
  724. #        element 'cfol' as ['indx', 'name']
  725. #        element 'fntf' as ['indx', 'name']
  726. #        element 'fsut' as ['indx', 'name']
  727. #        element 'cobj' as ['indx', 'name']
  728. #        element 'sctr' as ['indx', 'name']
  729. #        element 'sndf' as ['indx', 'name']
  730. #        element 'stcs' as ['indx', 'name']
  731.  
  732. #    Class 'user' ('cuse') -- 'A User in the Users and Groups control panel'
  733. #        property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the user' [mutable]
  734. #        property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the user' [mutable]
  735. #        property 'label index' ('labi') 'long' -- 'the label of the user' [mutable]
  736. #        property 'name' ('pnam') 'itxt' -- 'the name of the user' [mutable]
  737. #        property 'position' ('posn') 'QDpt' -- 'the position of the user within its parent window' [mutable]
  738.  
  739. #    Class 'users' ('cuse') -- 'every user'
  740. #        property '' ('c@#!') 'type' -- '' [0]
  741.  
  742. #    Class 'window' ('cwin') -- 'A window'
  743.  
  744. #    Class 'windows' ('cwin') -- 'every window'
  745. #        property '' ('c@#!') 'type' -- '' [0]
  746.